import { get, post } from 'utils/fetch'
// 首页
export const getBanner = (params) => post('/api/goods/activity/getSlideshow', params)
export const goodsList = (params) => post('/api/goods/Service/PageList', params)
export const goodsDetal = (params) => post('/api/goods/Service/info', params)
export const projectList = (params) => post('/api/goods/Service/projectList', params)
export const packageDeatail = (params) => post('/api/goods/package/details', params)
export const goodsPackage = (params) => post('/api/goods/Service/goodsPackagePage', params)
export const evaluationList = (params) => post('/api/goods/Service/EvaluationPageList', params)
export const infoBySerId = (params) => post('/api/goods/Service/infoBySerId', params)
export const infoByinfo = (params) => post('/api/goods/Service/info', params)
export const yellowList = (params) => post('/api/enterprise/getYellow', params)

export const jobJoin = (params) => post('/api/recruitmen/resume', params)
export const jobInfor = (params) => post('/api/recruitmen/info', params)
export const jobCompanyList = (params) => post('/api/recruitmen/list', params)
export const jobCompany = (params) => post('/api/recruitmen/enterpriseInfo', params)
export const jobList = (params) => post('/api/enterprise/getRecruitment', params)





//文件上传
export const upload = (params) => post('/api/file/upload', params)

//系统通知
export const sysInformList = (params) => post('/api/SysInform/getSysInformList', params)
export const sysInformDetail = (params) => post('/api/SysInform/getSysInform', params)
export const sysInformState = (params) => post('/api/SysInform/updateState', params)

// 分享推广
export const getShareCode = (params) => post('/api/goods/share/getShareCode', params)
export const addUserShare = (params) => post('/api/goods/share/addUserShare', params)

// 订单
export const orderConfirm = (params) => post('/api/goods/order/packageConfirmationOrder', params)
export const goodsConfirm = (params) => post('/api/goods/order/goodsConfirmationOrder', params)
export const orderPlace = (params) => post('/api/goods/order/placeOrder', params)
export const orderList = (params) => post('/api/goods/order/pageList', params)
export const orderDetail = (params) => post('/api/goods/order/Info', params)
export const orderEvaluation = (params) => post('/api/goods/order/evaluation', params)
export const ordercancel = (params) => post('/api/goods/order/cancel', params)
export const orderInvoice = (params) => post('/api/invoice/newInvoice', params)


// 主页
export const homeList = (params) => post('/api/goods/homePage/dataList', params)
export const cityTree = (params) => post('/api/region/getAllProvince', params)

// 用户相关
export const sendCode = (params) => post('/api/auth/sms', params)
export const register = (params) => post('/api/auth/register', params)
export const resetPwd = (params) => post('/api/auth/resetPwd', params)
export const login = (params) => post('/api/auth/login', params)
export const refreshToken = (params) => post('/api/auth/refreshToken', params)
export const memberCenter = (params) => post('/api/user/memberCenter', params)
export const memberInfo = (params) => post('/api/member/info', params)
export const myIndex = (params) => post('/api/user/myIndex', params)
export const myInformList = (params) => post('/api/user/myInformList', params)
export const userConsultation = (params) => post('/api/goods/Service/userConsultation', params)
export const riser = (params) => post('/api/invoice/rise', params)
export const edtRise = (params) => post('/api/invoice/edtRise', params)
export const delRise = (params) => post('/api/invoice/delRise', params)
export const invoiceList = (params) => post('/api/invoice/invoiceList', params)
export const addRise = (params) => post('/api/invoice/addRise', params)
export const modify = (params) => post('/api/user/updateUserInfo', params)

//收货地址
export const addressList = (params) => post('/api/user/shippingAddress/getList', params)
export const addressUpdate = (params) => post('/api/user/shippingAddress/addOrUpdate', params)
export const addressDel = (params) => post('/api/user/shippingAddress/del', params)

// 支付
export const goodPay = (params) => post('/api/pay/GoodPay', params)

// 微信公众号
export const wxAuthorize = (params) => post('/api/wechatMP/wxAuthorize', params)
export const wxSetCode = (params) => post('/api/wechatMP/wxSetCode', params)

//企业模块 
export const setAuthentication = (params) => post('/api/enterprise/setAuthentication', params)
export const setAuthentication_1 = (params) => post('/api/enterprise/setAuthentication_1', params)
export const authenticationManage = (params) => post('/api/enterprise/authenticationManage', params)

//字典区域
export const dictAuthenticationType = (params) => post('/api/dict/getAuthenticationTypeDict', params)
export const dictGrade = (params) => post('/api/dict/getAuthenticationType', params)
export const dictType = (params) => post('/api/dict/getCompanyType', params)
export const dictStatus = (params) => post('/api/dict/getManagementStatus', params)
export const dictIndustry = (params) => post('/api/dict/getIndustry', params)
export const getAllProvince = (params) => post('/api/dict/getAllProvince', params)
export const getCityByPid = (params) => post('/api/dict/getCityByPid', params)
export const getCountyByPid = (params) => post('/api/dict/getCountyByPid', params)
// 二维码
export const getShareQR = (params) => post('/api/goods/share/getShareQR', params)
export const sharecallback = (params) => post('/api/goods/share/addUserShare', params)

export const getElitePage = (params) => post('/api/elite/getElitePage', params)
export const getEliteDetails = (params) => post('/api/elite/getEliteDetails', params)


export default {
    getBanner,
    goodsList,
    goodsDetal,
    projectList,
    packageDeatail,
    goodsPackage,
    evaluationList,
    infoBySerId,
    infoByinfo,
    yellowList,
    jobJoin,
    jobInfor,
    jobCompanyList,
    jobCompany,
    jobList,


    upload,
    sysInformList,
    sysInformDetail,
    sysInformState,

    getShareCode,
    addUserShare,

    orderConfirm,
    goodsConfirm,
    orderPlace,
    orderList,
    orderDetail,
    orderEvaluation,
    ordercancel,
    orderInvoice,


    homeList,
    cityTree,

    sendCode,
    register,
    resetPwd,
    login,
    refreshToken,
    memberCenter,
    memberInfo,
    myIndex,
    myInformList,
    userConsultation,
    riser,
    edtRise,
    delRise,
    invoiceList,
    addRise,
    modify,

    addressList,
    addressUpdate,
    addressDel,

    goodPay,

    wxAuthorize,
    wxSetCode,

    setAuthentication,
	setAuthentication_1,
    authenticationManage,


    dictAuthenticationType,
    dictGrade,
    dictType,
    dictStatus,
    dictIndustry,
    getAllProvince,
    getCityByPid,
    getCountyByPid,

    getShareQR,
    sharecallback,
    getElitePage,
    getEliteDetails,
}
